<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>后盾人</title>
  </head>
  <body>
    <div></div>
    <div></div>
  </body>
  <script>
    // let set = new WeakSet();
    // set.add(["hdcms", "houdunren"]);
    let nodes = new WeakSet();
    let divs = document.querySelectorAll("div");
    divs.forEach(function(item) {
      nodes.add(item);
    });
    nodes.delete(divs[0]);
    console.log(nodes.has(divs[0]));
    console.log(nodes);
  </script>
</html>
